<div class="centerleft">
<div id="leftbg">
	<div id="treemenu" class="sdmenu">
	      [%forlist from=$menulinkarray key=i%]
		  [%if $menulinkarray[i].topmlid|powercheck( $menulinkarray[i].mlid ) == true %]
	      [%if $menulinkarray[i].collapsed=='true'%]<div>[%else%]<div class="collapsed">[%/if%]
		<span>[%$menulinkarray[i].menuname%]</span>
			[%forlist from=$menulinkarray[i].linked key=ii%]
			        [%if $menulinkarray[i].linked[ii].topmlid|powercheck( $menulinkarray[i].linked[ii].mlid ) == true %]
					[%if $menulinkarray[i].linked[ii].iswindow==1%]
					<a class="infolink06" href="javascript:windowsdig('[%$menulinkarray[i].linked[ii].menuname%]','iframe:[%$menulinkarray[i].linked[ii].linkurl%]','[%$menulinkarray[i].linked[ii].width%]px','[%$menulinkarray[i].linked[ii].height%]px','iframe',true,1);" hidefocus="true">[%$menulinkarray[i].linked[ii].menuname%]</a>
					[%elseif $menulinkarray[i].linked[ii].iswindow==2 %]
							[%if $menulinkarray[i].linked[ii].archive==$archive && $menulinkarray[i].linked[ii].action==$action && $menulinkarray[i].linked[ii].loadfun!=$loadfun%]
								<p class="tabclick"[%if $menulinkarray[i].linked[ii].istab==1%] jerichotabindex="0"[%/if%] dataType='iframe' dataLink='[%$menulinkarray[i].linked[ii].linkurl%]' iconImg='templates/images/tab.gif'><a class="infolink06" href="#body" hidefocus="true">[%$menulinkarray[i].linked[ii].menuname%]</a></p>
							[%else%]
								[%if $menulinkarray[i].linked[ii].archive==$archive && $menulinkarray[i].linked[ii].loadfun==$loadfun && $menulinkarray[i].linked[ii].loadfun!='modelarticlelist'%]
									<p class="tabclick" jerichotabindex="0"><a class="infolink06" href="#body" hidefocus="true">[%$menulinkarray[i].linked[ii].menuname%]</a></p>
								[%else%]
									<p class="tabclick" jerichotabindex="0"><a class="infolink06" href="[%$menulinkarray[i].linked[ii].taburl%]" hidefocus="true">[%$menulinkarray[i].linked[ii].menuname%]</a></p>
								[%/if%]
							[%/if%]
					[%else%]
						[%if $menulinkarray[i].linked[ii].archive==$archive && $menulinkarray[i].linked[ii].loadfun==$loadfun && $menulinkarray[i].linked[ii].loadfun!='modelarticlelist'%]
							<p class="tabclick"[%if $menulinkarray[i].linked[ii].istab==1%] jerichotabindex="0"[%/if%]><a class="infolink06" href="#body" hidefocus="true">[%$menulinkarray[i].linked[ii].menuname%]</a></p>
						[%else%]
							<p class="tabclick"[%if $menulinkarray[i].linked[ii].istab==1%] jerichotabindex="0"[%/if%]><a class="infolink06" href="[%$menulinkarray[i].linked[ii].linkurl%]" hidefocus="true">[%$menulinkarray[i].linked[ii].menuname%]</a></p>
						[%/if%]
					[%/if%]
				[%/if%]
			[%/forlist%]
	        </div>
			[%/if%]
	     [%/forlist%]
	</div>
</div>
</div>